﻿using Bintje.bintje;

namespace Bintje
{
    public class TrailFilter
    {

        #region Fields

        private string m_description;
        private string m_latitude;
        private string[] m_layerNames;
        private string m_longitude;
        private int m_maxTrails;
        private string m_radius;
        private string m_trailTitle;
        private int m_userId;
        private string m_userLogin; 

        #endregion

        #region Properties

        public string Description
        {
            get { return m_description; }
            set { m_description = value; }
        }

        public string Latitude
        {
            get { return m_latitude; }
            set { m_latitude = value; }
        }

        public string[] LayerNames
        {
            get { return m_layerNames; }
            set { m_layerNames = value; }
        }

        public string Longitude
        {
            get { return m_longitude; }
            set { m_longitude = value; }
        }

        public int MaxTrails
        {
            get { return m_maxTrails; }
            set { m_maxTrails = value; }
        }

        public string Radius
        {
            get { return m_radius; }
            set { m_radius = value; }
        }

        public string TrailTitle
        {
            get { return m_trailTitle; }
            set { m_trailTitle = value; }
        }

        public int UserId
        {
            get { return m_userId; }
            set { m_userId = value; }
        }

        public string UserLogin
        {
            get { return m_userLogin; }
            set { m_userLogin = value; }
        } 

        #endregion

        #region ctor

        public TrailFilter()
        {

        } 

        #endregion

        #region Methods
        /*
        public trailFilterRequest ConvertToAPI()
        {
            trailFilterRequest request = new trailFilterRequest();
            if (!string.IsNullOrEmpty(m_description))
                request.description = m_description;
            if (!string.IsNullOrEmpty(m_latitude))
                request.latitude = m_latitude;
            if (!string.IsNullOrEmpty(m_longitude))
                request.longitude = m_longitude;
            if (m_maxTrails > 0)
                request.maxTrails = m_maxTrails;
            if (!string.IsNullOrEmpty(m_radius))
                request.radius = m_radius;
            if (!string.IsNullOrEmpty(m_trailTitle))
                request.trailTitle = m_trailTitle;
            if (m_userId > 0)
                request.userId = m_userId;
            if (!string.IsNullOrEmpty(m_userLogin))
                request.userLogin = m_userLogin;
            if (null != m_layerNames && m_layerNames.Length > 0)
                request.layerNames = m_layerNames;
            return request;
        } 
        */
        #endregion

    }
}
